package org.htmlparser.tags;

import org.htmlparser.scanners.StyleScanner;

public class StyleTag extends CompositeTag
{
  private static final String[] mEndTagEnders;
  private static final String[] mIds;

  static
  {
    String[] arrayOfString1 = new String[1];
    arrayOfString1[0] = "STYLE";
    mIds = arrayOfString1;
    String[] arrayOfString2 = new String[2];
    arrayOfString2[0] = "BODY";
    arrayOfString2[1] = "HTML";
    mEndTagEnders = arrayOfString2;
  }

  public StyleTag()
  {
    setThisScanner(new StyleScanner());
  }

  public String[] getEndTagEnders()
  {
    return mEndTagEnders;
  }

  public String[] getIds()
  {
    return mIds;
  }

  public String getStyleCode()
  {
    return getChildrenHTML();
  }

  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    String str1 = toHtml();
    String str2 = str1.substring(1, str1.length() - 1);
    localStringBuffer.append("Style node :\n");
    localStringBuffer.append(str2);
    localStringBuffer.append("\n");
    return localStringBuffer.toString();
  }
}